#include "D3DEngine.h"

class Unit : public Sprite
{
public:
	int HP;
	UINT MAXHP;
	float VelocityX = 0, VelocityY = 0;
	float speed = 3.0f;
	Sprite HealthBar;
	bool HealthBarLoaded = false;
	bool Targeted = false, Closest = false;
	std::vector<Vector2> Path;
	int path_index;

	Unit(int hp, UINT hBoxW, UINT hBoxH, int id);
	void UpdateHealthBar();
};